// samsting : this file is auto create.

#include "Slb/2014-05-15/CreateLoadBalancerUDPListenerRequest.h"

namespace aliyun { namespace Slb {

CreateLoadBalancerUDPListenerRequest::CreateLoadBalancerUDPListenerRequest() : RpcAcsRequest("Slb", "2014-05-15", "CreateLoadBalancerUDPListener") {
}

int64 CreateLoadBalancerUDPListenerRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void CreateLoadBalancerUDPListenerRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& CreateLoadBalancerUDPListenerRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void CreateLoadBalancerUDPListenerRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 CreateLoadBalancerUDPListenerRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void CreateLoadBalancerUDPListenerRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& CreateLoadBalancerUDPListenerRequest::GetLoadBalancerId(void) const {
  return LoadBalancerId_;
}
void CreateLoadBalancerUDPListenerRequest::SetLoadBalancerId(const string& LoadBalancerId) {
  LoadBalancerId_ = LoadBalancerId;
  PutQueryParameter("LoadBalancerId", LoadBalancerId_);
}

int CreateLoadBalancerUDPListenerRequest::GetListenerPort(void) const {
  return ListenerPort_;
}
bool CreateLoadBalancerUDPListenerRequest::SetListenerPort(int ListenerPort) {
  if(ListenerPort < 1) {
    return false;
  }
  if(ListenerPort > 65535) {
    return false;
  }
  ListenerPort_ = ListenerPort;
  PutQueryParameter("ListenerPort", string_ValueOfInt(ListenerPort_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetBackendServerPort(void) const {
  return BackendServerPort_;
}
bool CreateLoadBalancerUDPListenerRequest::SetBackendServerPort(int BackendServerPort) {
  if(BackendServerPort < 1) {
    return false;
  }
  if(BackendServerPort > 65535) {
    return false;
  }
  BackendServerPort_ = BackendServerPort;
  PutQueryParameter("BackendServerPort", string_ValueOfInt(BackendServerPort_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetBandwidth(void) const {
  return Bandwidth_;
}
bool CreateLoadBalancerUDPListenerRequest::SetBandwidth(int Bandwidth) {
  if(Bandwidth < -1) {
    return false;
  }
  if(Bandwidth > 1000) {
    return false;
  }
  Bandwidth_ = Bandwidth;
  PutQueryParameter("Bandwidth", string_ValueOfInt(Bandwidth_));
  return true;
}

const string& CreateLoadBalancerUDPListenerRequest::GetScheduler(void) const {
  return Scheduler_;
}
void CreateLoadBalancerUDPListenerRequest::SetScheduler(const string& Scheduler) {
  Scheduler_ = Scheduler;
  PutQueryParameter("Scheduler", Scheduler_);
}

int CreateLoadBalancerUDPListenerRequest::GetPersistenceTimeout(void) const {
  return PersistenceTimeout_;
}
bool CreateLoadBalancerUDPListenerRequest::SetPersistenceTimeout(int PersistenceTimeout) {
  if(PersistenceTimeout < 0) {
    return false;
  }
  if(PersistenceTimeout > 86400) {
    return false;
  }
  PersistenceTimeout_ = PersistenceTimeout;
  PutQueryParameter("PersistenceTimeout", string_ValueOfInt(PersistenceTimeout_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetHealthyThreshold(void) const {
  return HealthyThreshold_;
}
bool CreateLoadBalancerUDPListenerRequest::SetHealthyThreshold(int HealthyThreshold) {
  if(HealthyThreshold < 1) {
    return false;
  }
  if(HealthyThreshold > 10) {
    return false;
  }
  HealthyThreshold_ = HealthyThreshold;
  PutQueryParameter("HealthyThreshold", string_ValueOfInt(HealthyThreshold_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetUnhealthyThreshold(void) const {
  return UnhealthyThreshold_;
}
bool CreateLoadBalancerUDPListenerRequest::SetUnhealthyThreshold(int UnhealthyThreshold) {
  if(UnhealthyThreshold < 1) {
    return false;
  }
  if(UnhealthyThreshold > 10) {
    return false;
  }
  UnhealthyThreshold_ = UnhealthyThreshold;
  PutQueryParameter("UnhealthyThreshold", string_ValueOfInt(UnhealthyThreshold_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetHealthCheckConnectTimeout(void) const {
  return HealthCheckConnectTimeout_;
}
bool CreateLoadBalancerUDPListenerRequest::SetHealthCheckConnectTimeout(int HealthCheckConnectTimeout) {
  if(HealthCheckConnectTimeout < 1) {
    return false;
  }
  if(HealthCheckConnectTimeout > 50) {
    return false;
  }
  HealthCheckConnectTimeout_ = HealthCheckConnectTimeout;
  PutQueryParameter("HealthCheckConnectTimeout", string_ValueOfInt(HealthCheckConnectTimeout_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetHealthCheckConnectPort(void) const {
  return HealthCheckConnectPort_;
}
bool CreateLoadBalancerUDPListenerRequest::SetHealthCheckConnectPort(int HealthCheckConnectPort) {
  if(HealthCheckConnectPort < 1) {
    return false;
  }
  if(HealthCheckConnectPort > 65535) {
    return false;
  }
  HealthCheckConnectPort_ = HealthCheckConnectPort;
  PutQueryParameter("HealthCheckConnectPort", string_ValueOfInt(HealthCheckConnectPort_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GethealthCheckInterval(void) const {
  return healthCheckInterval_;
}
bool CreateLoadBalancerUDPListenerRequest::SethealthCheckInterval(int healthCheckInterval) {
  if(healthCheckInterval < 1) {
    return false;
  }
  if(healthCheckInterval > 5) {
    return false;
  }
  healthCheckInterval_ = healthCheckInterval;
  PutQueryParameter("healthCheckInterval", string_ValueOfInt(healthCheckInterval_));
  return true;
}

int CreateLoadBalancerUDPListenerRequest::GetMaxConnLimit(void) const {
  return MaxConnLimit_;
}
void CreateLoadBalancerUDPListenerRequest::SetMaxConnLimit(int MaxConnLimit) {
  MaxConnLimit_ = MaxConnLimit;
  PutQueryParameter("MaxConnLimit", string_ValueOfInt(MaxConnLimit_));
}

const string& CreateLoadBalancerUDPListenerRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void CreateLoadBalancerUDPListenerRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}


} } // namespace aliyun { namespace Slb {

// end of file 
